home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Mania 6
/
MacMania 6.toast
/
/
Multimedia & Desktop
/
VideoToolbox
/
VideoToolboxSources
/
TitleBarHeight.c
< prev
next >
Wrap
Text File
|
1993-02-23
|
427b
|
23 lines
/*
TitleBarHeight.c
Returns the height of a window's title bar, in pixels.
HISTORY:
12/29/91 dgp extracted from Zoom.c
*/
#include "VideoToolbox.h"
int TitleBarHeight(WindowPtr window)
{
WindowPtr oldPort;
int headRoom;
Point pt;
GetPort(&oldPort);
SetPort(window);
pt.v=window->portRect.top;
LocalToGlobal(&pt);
headRoom=pt.v-1-(*((WindowPeek)window)->strucRgn)->rgnBBox.top;
SetPort(oldPort);
return headRoom;
}